<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>多层表头</title>
<!--框架必需start-->
<script type="text/javascript" src="../../libs/js/jquery.js"></script>
<script type="text/javascript" src="../../libs/js/language/cn.js"></script>
<script type="text/javascript" src="../../libs/js/framework.js"></script>
<link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" id="skin" prePath="../../" scrollerX="true"/>
<link rel="stylesheet" type="text/css" id="customSkin"/>
<!--框架必需end-->

<!--数据表格start-->
<script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
<!--数据表格end-->

</head>
<body>
  <div class="page_content">
  <div id="maingrid"></div>
  </div>
<script type="text/javascript">
     var testData={"form.paginate.pageNo":1,"form.paginate.totalRows":13,"rows":[
            {
                "city":"南京市",
                "id":125,
                "rows":[{
                    "title": "排放基数",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "控制目标",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "削减比例",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "存量任务",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    }],
                'fujian': '浏览 上传责任书'
            },{
                "city":"辽宁区",
                "id":125,
                'fujian': '浏览 上传责任书',
                "rows":[{
                    "title": "排放基数",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "控制目标",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "削减比例",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "存量任务",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    }]
            },{
                "city":"浦口区",
                "id":125,
                "rows":[{
                    "title": "排放基数",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "控制目标",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "削减比例",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    },
                    {
                    "title": "存量任务",
                    "total1": 1000,
                    "gy": 800,
                    "ny": 200,
                    "total2": 2000,
                    "gy2": 1100,
                    "ny2": 900,
                    "so2": 10.00,
                    "nox": 11.00
                    }],
                'fujian': '浏览 上传责任书'
    }
    ]}
       

       //数据表格
    var g;
        
  $(function(){
        g = $("#maingrid").quiGrid({
                columns: [ 
                  { display: '行政区', name: 'city',width: 100},
                  { display: '项目', name: 'title', width: 100 },
                  { display: 'COD', columns: [
                    { display: '合计', name: 'total1', width: 100 },
                    { display: '工业生活', name: 'ny', width: 100 },
                    { display: '农业', name: 'gy', width: 100 }
                    ]},
                  { display: 'NH3-N', columns: [
                    { display: '合计', name: 'total2', width: 100 },
                    { display: '工业生活', name: 'gy2', width: 100 },
                    { display: '农业', name: 'ny2', width: 100 }
                    ] },
                  { display: 'SO2', name: 'so2', width: 100  },
                  { display: 'NOX', name: 'nox', width: 100  },
                  { display: '附件', name: 'fujian', width: 200  }
                ], 
                data:testData, 
                pageSize: 10, sortName: 'name',rownumbers:false,checkbox:false,
                height: 'auto', width:1210,multihead:true,multiBody:true,usePager:false,hideScrollerX:true
            });
      })
          
    </script>   
</body>
</html>